package com.tencent.wxcloudrun.common;

import lombok.extern.slf4j.Slf4j;

import java.util.Random;

@Slf4j
public class WeChatUtil {
    public static String RandomUUID (int number) {
        String initString = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890_.~@&";
        Random random = new Random();
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i <=number; i ++) {
            int num = random.nextInt(initString.length());
            sb.append(initString.charAt(num));
        }
        return sb.toString();
    }

}
